package com.jye.rseven.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Courses implements Serializable{
    private Integer id;//课程id
    private String name;//课程名称
    private  String desc; //课程描述
    private Integer price;//课程价格
    private String imgUrl;//课程封面地址
    private String type;
    private int status;
    private Date createTime;
    private Integer pId;
    private Integer uId;
    @Transient
    private int like;//点赞数量
    @Transient
    private boolean islike;//是否点赞
    @Transient
    private boolean isfollow;//是否关注
    @Transient
    private boolean iscourses;//是否拥有课程
    @Transient
    private List<Comments> commentsList;//评论
    @Transient
    private List<Videos> videosList;//视频
    @Transient
    private List<Classes> classesList;//分班级
    @Transient
    private int commentsCount;//总评论数
    @Transient
    private User user;
    @Transient
    private List<Courses> coursesList;

}
